package com.mengtian_tech.smart_lab.service.mail;
import org.jeecgframework.core.common.hibernate.qbc.PageList;
import org.jeecgframework.core.common.service.CommonService;

import com.mengtian_tech.smart_lab.entity.system.TSUser;

public interface MailService extends CommonService{
	
	/**
	 * 发送邮件 
	 * @param receive
	 * @param content
	 * @param title
	 * @param mailType 0-提醒，1-警告
	 * @return
	 */
	public boolean sendMail(TSUser receive,String content,String title,String mailType);
	
	public boolean sendAuditMail(TSUser receive, String content, String title,String mailType) ;
	 
	/**
	 * 获取收件箱列表
	 */
	public PageList getReceiveMailList(TSUser receive,String title,String senderName,int pageNo,int pageSize) ; 	 

	
	/**
	 * 未读邮件
	 */
	public PageList getUnReadMailList(TSUser receive,int pageNo,int pageSize ,boolean isAuditMsg);
	
}
